<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {

            width: 300px;
            height: 150px;
            border: 20px solid red;
            background-color: pink;
            /* 边框背景图片 */
            /* 1.设置边框背景图片来源 */
            /* border-image-source:url('./images/border2.jpg'); */
            /* 2.设置边框背景图片偏移量：用四个偏移量（上右下左）把图片裁剪成九宫格 */
            /* border-image-slice:167 167 167 167; */
            /* 3.设置边框背景图片的宽度：一般和border宽度一致 */
            /* border-image-width: 20px; */
            /* 4.设置中间图片的平铺样式：repeat重复 stretch拉伸 round铺满 */

            /* 复合属性可以连写 */
            border-image:url('./images/border2.jpg') 167 167 167 167/20px stretch;
        }
    </style>
</head>
<body>
    <div>good</div>
</body>
</html>